metadata:
  annotations:
    helmcharts-demo/test-template/annot1:  {{% or (index .Annotations "synapse-injector/api-key") "NN" %}}
    helmcharts-demo/test-template/annot2: val2
    helmcharts-demo/test-template/agent-inject: test
spec:
  containers:
    - name: /nemespace/test1
      image: test.img1
      # envFrom:
      #   - secretRef:
      #       name: test-secret
      env:
        - name: MADKUB_NODENAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: spec.nodeName
      #   - name: MADKUB_NAME
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: metadata.name
      #   - name: MADKUB_NAMESPACE
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: metadata.namespace
      securityContext:
        capabilities:
          drop:
            - KILL
            - MKNOD
            - SETGID
            - SETUID
    - name: /nemespace/test2
      image: test.img2
      # env:
      #   - name: MADKUB_NODENAME
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: spec.nodeName
      #   - name: MADKUB_NAME
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: metadata.name
      #   - name: MADKUB_NAMESPACE
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: metadata.namespace
      securityContext:
        capabilities:
          drop:
            - KILL
            - MKNOD
            - SETGID
            - SETUID
    - name: /nemespace/test3
      image: test.img3
      env:
        # - name: SECRET_USERNAME
        #   valueFrom:
        #     secretKeyRef:
        #       name: backend-user
        #       key: backend-username

      #   - name: MADKUB_NODENAME
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: spec.nodeName
      #   - name: MADKUB_NAME
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: metadata.name
      #   - name: MADKUB_NAMESPACE
      #     valueFrom:
      #       fieldRef:
      #         apiVersion: v1
      #         fieldPath: metadata.namespace
      securityContext:
        capabilities:
          drop:
            - KILL
            - MKNOD
            - SETGID
            - SETUID
  volumes:
    - name: helmcharts-demo/test-template/vol7
      # hostPath:
      #   path: /data
      #   type: Directory
    - name: helmcharts-demo/test-template/vol8
      # hostPath:
      #   path: /datassss
      #   type: Directory
    - configMap:
        name: istio
      name: helmcharts-demo/test-template/vol1
    - configMap:
        name: basic
      name: helmcharts-demo/test-template/vol2
    - configMap:
        name: fluent
      name: helmcharts-demo/test-template/vol3
    - configMap:
        name: micro
      name: helmcharts-demo/test-template/vol4
    - name: helmcharts-demo/test-template/vol5
      # hostPath:
      #   path: /data
      #   type: Directory
    - name: helmcharts-demo/test-template/vol6
      # secret:
      #   secretName: mysecret
      #   optional: true
      